<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/11
 * Time: 8:11
 */
class Shapc
{
    public function getArea(){}

}
        class  Rectangle extends Shapc
        {
            private $width, $height;
         public function __construct($width,$height)
         {
             $this->height=$height;
             $this->width=$width;
         }
         public function  getArea()
         {
            return $this->width*$this->height;
         }
        }
